<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <style type="text/css">
            #ss {
                color:blue;
            }
        </style>
        <script src="js/time.js?"></script>
        <script type="text/javascript">
//            function strategyChange(v){
//                var sa = document.getElementById("sa");
//                if(v=="randarea"){
//                    sa.style.display = "block";
//                }
//                else{
//                    sa.style.display = "none";
//                }
//            }
        </script>
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr>
                <td id='ss'><?= translate('STATUS') ?>:</td>
                <td>
                    <input type="radio" name="row[strategy]" <?= checkchecked('lastarea', $row['strategy']) ?> value="lastarea" onclick="strategyChange(this.value)"> <?= translate('GENERAL_STRATEGY_LASTAREA') ?> 
                 <input type="radio" name="row[strategy]" <?= checkchecked('randarea', $row['strategy']) ?> value="randarea" onclick="strategyChange(this.value)"> <?= translate('GENERAL_STRATEGY_RANDAREA') ?>  				
                </td>
                </tr>
                <tr><td><?= translate('SELECT_AREA') ?>:</td><td><?= $arealist ?></td></tr>
                <tr>
                    <td></td><td>
                        <input type="submit" value="<?= translate('SUBMIT') ?>" id="submit"/> <input type="reset" value="<?= translate('RESET') ?>" id="reset"/>
                    </td>
                </tr>
        </table>
    </form>
<script type="text/javascript">
    SG.init("core.form", function() {
        $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
        $("#word").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
        $("#repeatCount").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
        $("#interval").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
        $("#type").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
        //$("#repeatCount").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
    });
</script>
</body>
</html>
